﻿using MediatR;
using PublicClass;
using System.ComponentModel.DataAnnotations;

namespace S.Produce.Api.Application.Commands.PregnantCommands
{
    /// <summary>
    /// 
    /// </summary>
    public class PregnantUpdateCommand:AuditFields,IRequest<int>
    {
        /// <summary>
        /// 主键编号
        /// </summary>
        [Key]
        public int PreId { get; set; }

        /// <summary>
        /// 妊检结果
        /// </summary>
        [StringLength(50)]
        public string? PreResult { get; set; }

        /// <summary>
        /// 妊检方式
        /// </summary>
        [StringLength(50)]
        public string? PreWay { get; set; }

        /// <summary>
        /// 耳号
        /// </summary>
        [StringLength(50)]
        public string? Earbugles { get; set; }

        /// <summary>
        /// 同胎数
        /// </summary>
        public int? PreNumber { get; set; }

        /// <summary>
        /// 妊检日期
        /// </summary>
        public DateTime? PreDate { get; set; }

        /// <summary>
        /// 当前栋舍
        /// </summary>
        [StringLength(50)]
        public string? CurrentCottage { get; set; }

        /// <summary>
        /// 当前栏位
        /// </summary>
        [StringLength(50)]
        public string? CurrentFieldName { get; set; }

        /// <summary>
        /// 转入栋舍
        /// </summary>
        [StringLength(50)]
        public string? TransferCottage { get; set; }

        /// <summary>
        /// 转入栏位
        /// </summary>
        [StringLength(50)]
        public string? TransferFieldName { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        [StringLength(50)]
        public string? PersonCharge { get; set; }

        /// <summary>
        /// 妊检天数
        /// </summary>
        public int? PreDays { get; set; }
    }
}
